package com.mytijian.runtime.model.param;

import java.util.Map;

public class AliCommonParam {
	/**
	 * 请求类型，通过此参数区分不同的通知请求
	 */
	private String method;
	/**
	 * 请求时间戳，精确到毫秒级别
	 */
	private String timestamp;
	/**
	 * 通知请求签名值，参数验签demo请参见
	 * http://open.taobao.com/doc2/detail.htm?treeId=1&articleId=102899&docType=1
	 */
	private String sign;
	
	/**
	 * 原始请求参数
	 */
	private Map<String, Object> originParams;
	
	public AliCommonParam(Map<String, Object> originParams){
		this.originParams = originParams;
	}
	
	public Object getOriginParamValue(String key) {
		return originParams.get(key);
	}
	
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
	public String getTimestamp() {
		return timestamp;
	}
	public void setTimestamp(String timestamp) {
		this.timestamp = timestamp;
	}
	public String getSign() {
		return sign;
	}
	public void setSign(String sign) {
		this.sign = sign;
	}
	
}
